<?php
/**
 * Dialog widget class
 * @author Jacek Lukasiewicz
 *
 */
class DialogWidget extends Widget {
	
	/**
	 * template file
	 * @var string
	 */
	protected $template = 'dialog.tpl.php';
	/**
	 * Dialog text
	 * @var string
	 */
	protected $text = '';
	
	/**
	 * dialog title
	 * @var string
	 */
	protected $title = '';
	

	/**
	 * Widget name
	 * @var string
	 */
	protected $widget = 'dialog';
	
	/**
	 * set dialog text
	 * @param string $text
	 */
	public function setText($text = '') {

		$this->text = $text;

	}
        
        public function loadDependentFiles()
        {
            loadAppJS(NAANAL_PATH."js/jquery/ui/minified/jquery.ui.dialog.min.js","jquery.ui.dialog.min.js");
        }

	/**
	 * set dialog title
	 * @param string $text
	 */
	public function setTitle($text = '') {

		$this->title = $text;

	}
}
?>